<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>100日减脂计划 - 第5天</title>
    <link rel="stylesheet" href="style.css">
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎽</text></svg>">
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Noto+Sans+SC:wght@400;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
</head>
<body>
<div class="particles" id="particles-js"></div>

<header class="header">
    <div class="progress-container">
        <div class="progress-bar" id="progressBar"></div>
    </div>
    <h1 class="title animate__animated animate__fadeIn">100日运动计划</h1>
    <div class="day-counter">
        <span id="currentDay">5</span>/100
    </div>
</header>

<main class="container">
    <section class="motivation-section">
        <div class="motivation-card animate__animated animate__fadeInUp">
            <h2>今日激励</h2>
            <p id="motivationText">加载中...</p>
            <button id="newMotivationBtn" class="btn">换一句鼓励</button>
        </div>
    </section>

    <section class="photo-section">
        <h2 class="section-title">今日记录</h2>
        <div class="photo-upload-container">
            <div class="upload-area" id="uploadArea">
                <input type="file" id="photoInput" accept="image/*" capture="camera">
                <label for="photoInput" class="upload-label">
                    <div class="upload-icon">+</div>
                    <p>点击上传今日照片</p>
                </label>
            </div>
            <div class="photo-preview" id="photoPreview"></div>
        </div>
        <div class="form-group">
            <label for="dayNotes">今日笔记:</label>
            <textarea id="dayNotes" placeholder="记录今天的运动和饮食..."></textarea>
        </div>
        <button id="saveBtn" class="btn">保存记录</button>
    </section>

    <section class="progress-section">
        <h2 class="section-title">减脂进度</h2>
        <div class="stats-container">
            <div class="stat-card">
                <div class="stat-value" id="daysCompleted">5</div>
                <div class="stat-label">已完成天数</div>
            </div>
            <div class="stat-card">
                <div class="stat-value" id="daysRemaining">95</div>
                <div class="stat-label">剩余天数</div>
            </div>
            <div class="stat-card">
                <div class="stat-value" id="completionPercent">5%</div>
                <div class="stat-label">完成百分比</div>
            </div>
        </div>
        <button id="toggleTimelineBtn" class="btn toggle-btn">展开时间线</button>
        <div class="timeline-container collapsed" id="timelineContainer">
            <div class="timeline" id="timeline">
                <!-- 时间线项目将通过JS动态生成 -->
            </div>
        </div>
    </section>

    <section class="gallery-section">
        <h2 class="section-title">变化图库</h2>
        <div class="gallery-grid" id="galleryGrid">
            <!-- 照片将通过JS动态加载 -->
        </div>
    </section>
</main>

<footer class="footer">
    <p>坚持就是胜利！你正在创造更好的自己！</p>
</footer>

<!-- 美化通知弹框 -->
<div id="notification" class="notification">
    <span class="notification-icon">✓</span>
    <span id="notification-message">记录保存成功！</span>
    <span class="notification-close" id="notification-close">×</span>
</div>

<script src="particles.min.js"></script>
<script src="script.js"></script>
</body>
</html>
